//
//  NSArray+Model.m
//  QFBAPP
//
//  Created by 无常先生 on 2018/5/3.
//  Copyright © 2018年 YIXun. All rights reserved.
//

#import "NSArray+Model.h"


@implementation NSArray (Model)

- (NSString *)errorCode {
    return objc_getAssociatedObject(self, @selector(setErrorCode:));
}

- (void)setErrorCode:(NSString *)errorCode {
    objc_setAssociatedObject(self, @selector(setErrorCode:), errorCode, OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (NSString *)errorMessage {
    return objc_getAssociatedObject(self, @selector(setErrorMessage:));
}

- (void)setErrorMessage:(NSString *)errorMessage {
    objc_setAssociatedObject(self, @selector(setErrorMessage:), errorMessage, OBJC_ASSOCIATION_COPY_NONATOMIC);
}

+ (NSArray *)modelArrayWithClass:(Class)cls json:(id)json {
    return [NSArray yy_modelArrayWithClass:cls json:json];
}
@end
